<?
    foreach ($this->spaes as $model_spa)
    {
?>
<li>
    <a href="" onClick="ajaxSpa({id: <?=$model_spa->getID() ?>, action: 'edit', container: 'inner', no_apply: true}); return false;"><nobr><?=$model_spa->getIP() ?> [<?=$model_spa->getMAC() ?>]</nobr></a>
</li>
<?
    };
?>
<li class="add_item">
    <a href="" onClick="addItem({menu: 'spa', container: 'inner', company_id: <?=$this->company_id ?>, type_id: <?=$this->type_id ?>}); return false;">Add new device</a>
</li>